java remove first digit from int

125

java remove first digit from int -

int x = 123456789;
int new_x = Integer.parseInt(Integer.toString(x).substring(1));

Comments

Submit
0 Comments